*** SOCIAL CONNECTEDNESS + MENTAL HEALTH

**** IMPUTED SCENARIO *************************
**** IMPUTED SCENARIO *************************
**** IMPUTED SCENARIO *************************
**** IMPUTED SCENARIO *************************
**** IMPUTED SCENARIO *************************


use "socialconnectedness_imputed.dta", replace


*** DEPRESSION

mi estimate, eform: glm depression2019_01 relation_sat2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 people_und2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



mi estimate, eform:  glm depression2019_01 lonely2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform: glm depression2019_01 relation_content2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



mi estimate, eform:  glm depression2019_01 people_help2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



mi estimate, eform:  glm depression2019_01 connected2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 trust_comm2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 social_connect2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



*** ANXIETY


mi estimate, eform:  glm anxiety2019_01 relation_sat2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 people_und2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 lonely2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 relation_content2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 people_help2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 connected2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 trust_comm2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 social_connect2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE
**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE
**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE
**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE
**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE
**************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE **************** RESPONDENTS WITH NO DISEASE

cls


mi estimate, eform: glm depression2019_01 relation_sat2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 people_und2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 lonely2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform: glm depression2019_01 relation_content2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 people_help2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 connected2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm depression2019_01 trust_comm2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 



mi estimate, eform:  glm depression2019_01 social_connect2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2017_01==0, link(log) robust family(poisson) eform 


*** ANXIETY


mi estimate, eform:  glm anxiety2019_01 relation_sat2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 people_und2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 



mi estimate, eform:  glm anxiety2019_01 lonely2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 relation_content2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 people_help2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 connected2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 trust_comm2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 


mi estimate, eform:  glm anxiety2019_01 social_connect2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2017_01==0, link(log) robust family(poisson) eform 






**** MODELS with limited controls - on imputed data


*** DEPRESSION
*** NO DEMOS + only prebaseline outcome and history of diseases

mi estimate, eform:  glm depression2019_01 social_connect2018 depression2017_01 num_health_cond2017, link(log) robust family(poisson) eform 



*** ANXIETY
*** NO DEMOS + only prebaseline outcome and history of diseases


mi estimate, eform:  glm anxiety2019_01 social_connect2018 anxiety2017_01 num_health_cond2017, link(log) robust family(poisson) eform 




**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 
**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 
**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 
**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 
**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 
**** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** **** FULL CASE SCENARIO ***** 


use "social_connectedness_not_imputed.dta", replace



*** DEPRESSION


xi: glm depression2019_01 relation_sat2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



xi: glm depression2019_01 people_und2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



xi: glm depression2019_01 lonely2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm depression2019_01 relation_content2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 





xi: glm depression2019_01 people_help2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm depression2019_01 connected2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm depression2019_01 trust_comm2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



xi: glm depression2019_01 social_connect2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 


*** ANXIETY



xi: glm anxiety2019_01 relation_sat2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm anxiety2019_01 people_und2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 





xi: glm anxiety2019_01 lonely2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm anxiety2019_01 relation_content2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 





xi: glm anxiety2019_01 people_help2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 





xi: glm anxiety2019_01 connected2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm anxiety2019_01 trust_comm2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 




xi: glm anxiety2019_01 social_connect2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017, link(log) robust family(poisson) eform 



*** MODEL A

*** DIFFERENCES

*gen Social_connectedness_diff=social_connect2019-social_connect2018
*gen Depr_diff=depression2019_01-depression2018_01
*gen Anx_diff=anxiety2019_01-anxiety2018_01


xi: glm Depr_diff Social_connectedness_diff depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2018_01==0, link(log) robust family(poisson) eform 


xi: glm Anx_diff Social_connectedness_diff anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2018_01==0, link(log) robust family(poisson) eform 


xi: logistic Depr_diff Social_connectedness_diff depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if depression2018_01==0


xi: logistic Anx_diff Social_connectedness_diff anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 if anxiety2018_01==0


*** MODEL B

gsem (depression2018_01 <- social_connect2018 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(depression2019_01 <- social_connect2019 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) 
estat eform depression2018_01
estat eform depression2019_01

gsem (anxiety2018_01 <- social_connect2018 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(anxiety2019_01 <- social_connect2019 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) 
estat eform anxiety2018_01
estat eform anxiety2019_01


**** ROBUST NOT ALLOWED --- link(log) robust family(poisson)


*** MODEL C1



*** SIGNIFICANT
xi: logistic depression2019_01 social_connect2018 social_connect2019 depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017

*** NOT SIGNIFICANT
xi: logistic anxiety2019_01 social_connect2018 social_connect2019 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017



*** MODEL C2



*** SIGNIFICANT
xi: logistic depression2019_01 depression2018_01 depression2017_01 social_connect2019 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017


*** SIGNIFICANT
xi: logistic anxiety2019_01 anxiety2018_01 social_connect2019  anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017



*** MODEL C3



*** NOT SIGNIFICANT
xi: logistic depression2019_01 social_connect2018 depression2018_01 social_connect2019  depression2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017

*** NOT SIGNIFICANT
xi: logistic anxiety2019_01 social_connect2018  anxiety2018_01 social_connect2019 anxiety2017_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017



*** MODEL CROSS-LAGGED

gsem (depression2019_01 <- social_connect2018 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(social_connect2019 <- depression2018_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017) ///
(depression2019_01 <- depression2018_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(social_connect2019 <- social_connect2018 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017)  
estat eform depression2019_01

gsem (anxiety2019_01 <- social_connect2018 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(social_connect2019 <- anxiety2018_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017) ///
(anxiety2019_01 <- anxiety2018_01 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017 , family(binomial) link(logit)) ///
(social_connect2019 <- social_connect2018 w_goodat2018 supsup2018 jdfreedom2018 w_meaning2018 jdtoomch2018 i.race22018 i.age_cat2018 i.gender2018 i.married2018 i.vote2018 i.educ2018 i.home2018 i.children2018 i.elders2018 i.spirituality2018 i.work_hours2018 avg_p502018 num_health_cond2017)  
estat eform anxiety2019_01




































